﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Snake.GameBase
{
    class Trap : IGameComponent
    {
        public Point Position { get ; set; }
        public Size Size { get; set; }
        public Brush Color { get; set; }

        public void Show(Graphics g)
        {
            g.FillRectangle(Color, new Rectangle(new Point(Position.X * Size.Width, Position.Y * Size.Height), Size));
        }
    }
}
